package com.wisedu.wec.bank.api.impl;

import com.wisedu.wec.bank.api.BankServiceApi;
import com.wisedu.wec.bank.api.dto.PayStatus;
import com.wisedu.wec.bank.common.exception.DaoException;
import com.wisedu.wec.bank.biz.IBankService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @program: wec-mall-bank-apps
 * @description:
 * @author: Liuzidan
 * @create: 2021-01-08 11:25
 **/
@Service
public class BankServiceApiImpl implements BankServiceApi {
    @Autowired
    IBankService bankService;

    @Override
    public PayStatus productPay(String accountId, Double price) {
     return bankService.productPay(accountId,price);

    }

    @Override
    public PayStatus refund(String accountId, Double price) {

        return bankService.refund(accountId,price);


    }
}
